Columnize 0,card field "startcol",card field "colOff",card field "Before"
put the result into card field "test"
end mouseUp
-- part 2 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=398 top=132 right=146 bottom=458
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: startcol
-- part 3 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=398 top=149 right=163 bottom=457
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: coloff
-- part 4 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=255 top=184 right=202 bottom=478
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: before
-- part 5 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=255 top=226 right=269 bottom=477
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 10
-- part name: test
-- part 6 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=106 top=208 right=228 bottom=241
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Extract character
----- HyperTalk script -----
on mouseUp
Columnize 1,card field "extract",0,card field "Before"
put the result into card field "test"
end mouseUp
-- part 7 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=106 top=229 right=248 bottom=241
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Extract word
----- HyperTalk script -----
on mouseUp
Columnize 1,card field "extract",1,card field "Before"
put the result into card field "test"
end mouseUp
-- part 8 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=58 top=148 right=170 bottom=86
-- title width / last selected line: 0
-- icon id / first selected line: 26635 / 26635
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
show card field "columnize"
end mouseUp
-- part 9 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=58 top=203 right=225 bottom=86
-- title width / last selected line: 0
-- icon id / first selected line: 26635 / 26635
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
show card field "Extract character"
end mouseUp
-- part 10 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=58 top=227 right=249 bottom=86
-- title width / last selected line: 0
-- icon id / first selected line: 26635 / 26635
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
show card field "Extract word"
end mouseUp
-- part 12 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=107 top=172 right=192 bottom=241
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Columnize fields
----- HyperTalk script -----
on mouseUp
Columnize 2,card field "startcol",card field "colOff",card field "Before"
put the result into card field "test"
end mouseUp
-- part 13 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=58 top=172 right=194 bottom=86
-- title width / last selected line: 0
-- icon id / first selected line: 26635 / 26635
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
show card field "Columnize fields"
end mouseUp
-- part 14 (button)
-- low flags: 00
-- high flags: A003
-- rect: left=106 top=249 right=268 bottom=241
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Extract field
----- HyperTalk script -----
on mouseUp
Columnize 1,card field "extract",2,card field "Before"
put the result into card field "test"
end mouseUp
-- part 15 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=59 top=250 right=272 bottom=87
-- title width / last selected line: 0
-- icon id / first selected line: 26635 / 26635
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
show card field "Extract field"
end mouseUp
-- part 16 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=363 top=27 right=67 bottom=406
-- title width / last selected line: 0
-- icon id / first selected line: 31685 / 31685
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
push this card
put the short name of this card & " help" into target
go to card target
end mouseUp
-- part 17 (field)
-- low flags: 00
-- high flags: 0004
-- rect: left=251 top=276 right=290 bottom=311
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 0
-- line height: 12
-- part name: extract
-- part 18 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=84 top=98 right=116 bottom=219
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Ver 1.0 - 02/23/88
----- HyperTalk script -----
on mouseUp
go to card "Other stuff"
end mouseUp
-- part 19 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=83 top=33 right=74 bottom=123
-- title width / last selected line: 0
-- icon id / first selected line: 3182 / 3182
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
----- HyperTalk script -----
on mouseUp
set userlevel to 5
show button "the icon"
choose button tool
click at loc of button "the icon"
doMenu "Copy Button"
go to stack "Home"
doMenu "Paste Button"
show message box at 16,37
put "Move the 'Columnizer' button to a good location"
play harpsichord "ee c ee"
wait until the mouse is down
set hilite of button "the icon" to true
repeat until the mouse is up
set loc of button "the icon" to the mouseLoc
end repeat
set hilite of button "the icon" to false
choose browse tool
go back
hide message box
play harpsichord "c ee c"
set userlevel to 5
hide card button "the icon"
end mouseUp
-- part 20 (field)
-- low flags: 81
-- high flags: 0004
-- rect: left=106 top=170 right=244 bottom=334
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 256
-- line height: 10
-- part name: Columnize
----- HyperTalk script -----
on mouseUp
hide card field "Columnize"
end mouseUp
-- part 21 (field)
-- low flags: 81
-- high flags: 0004
-- rect: left=109 top=192 right=266 bottom=337
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 256
-- line height: 10
-- part name: Columnize fields
----- HyperTalk script -----
on mouseUp
hide card field "Columnize fields"
end mouseUp
-- part 22 (field)
-- low flags: 81
-- high flags: 0004
-- rect: left=98 top=134 right=208 bottom=326
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 256
-- line height: 10
-- part name: Extract character
----- HyperTalk script -----
on mouseUp
hide card field "Extract character"
end mouseUp
-- part 24 (field)
-- low flags: 81
-- high flags: 0004
-- rect: left=105 top=155 right=229 bottom=333
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 256
-- line height: 10
-- part name: Extract word
----- HyperTalk script -----
on mouseUp
hide card field "Extract word"
end mouseUp
-- part 25 (field)
-- low flags: 81
-- high flags: 0004
-- rect: left=106 top=175 right=249 bottom=334
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 9
-- style flags: 256
-- line height: 10
-- part name: Extract field
----- HyperTalk script -----
on mouseUp
hide card field "Extract field"
end mouseUp
-- part 26 (button)
-- low flags: 80
-- high flags: 2000
-- rect: left=219 top=183 right=224 bottom=259
-- title width / last selected line: 0
-- icon id / first selected line: 3182 / 3182
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: the icon
----- HyperTalk script -----
on mouseUp
go to stack "Columnizer"
end mouseUp
-- part contents for background part 5
----- text -----
Columnizer‚Ñ¢ XCMD
-- part contents for card part 2
----- text -----
4
-- part contents for card part 3
----- text -----
10
-- part contents for card part 4
----- text -----
this\ is a\ sample\ input string\ wi\th fields
-- part contents for card part 5
----- text -----
elds
-- part contents for card part 17
----- text -----
43
-- part contents for card part 20
----- text -----
The "Columnize" button will place the
"Input String" into columns starting at
"Start Column" with "Space between columns" between columns. The text is delimited by spaces. Play with different values of "Space between columns". Try small values.
-- part contents for card part 21
----- text -----
The "Columnize fields" button will place the string in "Input String" into columns starting at column "Start Column" with "Space between columns" characters between columns. Fields are delimited by '\'.
-- part contents for card part 22
----- text -----
The "Extract character" will return the character at character number
"Extract at" of the "Input String".
-- part contents for card part 24
----- text -----
The "Extract word" button will return all of the characters from character
"Extract at" up to the next space of
"Input String".
-- part contents for card part 25
----- text -----
The button "Extract field" will return all of the characters starting at character "Extract at" of "Input String" up to and including the next '\' character.